package com.lzy.product.service;

import com.lzy.product.dtos.agent.AgentProtocolCommissionDto;

import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
public interface AgentProtocolCommissionService extends BaseService<AgentProtocolCommissionDto> {

    /**
     * 根据id查询分佣
     *
     * @param protocolId
     * @return
     */
    List<AgentProtocolCommissionDto> selectByProtocolId(Long protocolId);

    /**
     * 删除销售分佣
     *
     * @param protocolId
     * @return
     */
    Boolean deleteByProtocolId(Long protocolId);

    /**
     * 根据协议id与体系id查询分佣
     *
     * @param protocolId
     * @return
     */
    List<AgentProtocolCommissionDto> selectByProtocolIdAndSystemId(Long protocolId, Long systemId,Integer isFirst);

    AgentProtocolCommissionDto selectByProtocolIdAndSystemIdAndPromoteId(Long protocolId, Long systemId, Long PromoteId);


}
